package com.rms.server.Domain;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;

@Schema(name = "OrderDetails", description = "订单详情信息实体")
@Getter
@Setter
public class OrderDetails {
    @Schema(description = "订单详情的唯一标识符")
    private Long orderDetailId;

    @Schema(description = "订单的唯一标识符，关联到订单表")
    private Long orderId;

    @Schema(description = "菜品的唯一标识符")
    private Long dishId;

    @Schema(description = "菜品的数量")
    private Integer quantity;

    @Schema(description = "菜品的单价")
    private BigDecimal dishPrice;

    @Schema(description = "菜品的净利润")
    private BigDecimal profit;

}
